<template>
    <div class="tabs-layout">
        <!-- 主要内容区域 -->
        <div class="content">
            <router-view />
        </div>

        <!-- 底部导航栏 -->
        <Tabbar v-model="active">
            <TabbarItem to="/home">首页</TabbarItem>
            <TabbarItem to="/withdraw">提现审核</TabbarItem>
        </Tabbar>
    </div>
</template>

<script setup lang='ts'>
import { Tabbar, TabbarItem } from 'vant'
import { ref } from "vue"


const active = ref(" ")

</script>

<style scoped>
.tabs-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 50px;
    /* 留出底部导航栏的空间 */
}

.van-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
</style>